package com.yunsc.store.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

/**
 * @version: 1.0
 * @Author: adan
 * @description:
 * @date: 2024-05-12 20:53
 */
@Data
public class PointConfigVO {
    @JsonProperty("is_shopping_gift")
    private int isShoppingGift;
    @JsonProperty("is_shopping_discount")
    private int isShoppingDiscount;
    @JsonProperty("points_name")
    private String pointsName;
    private String describe;
    @JsonProperty("gift_ratio")
    private String giftRatio;
    private PointsDiscountVO discount;

    @Data
    public static class PointsDiscountVO {
        // 获取默认积分抵扣规则
        @JsonProperty("discount_ratio")
        private String discountRatio;
        // 满减金额
        @JsonProperty("full_order_price")
        private String fullOrderPrice;
        // 最大抵扣金额比例
        @JsonProperty("max_money_ratio")
        private String maxMoneyRatio;
    }
}
